package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcOrderInvoiceMapper;
import com.ktgj.other.domain.RcOrderInvoice;
import com.ktgj.other.service.IRcOrderInvoiceService;

/**
 * 专车订单发票Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcOrderInvoiceServiceImpl implements IRcOrderInvoiceService 
{
    @Autowired
    private RcOrderInvoiceMapper rcOrderInvoiceMapper;

    /**
     * 查询专车订单发票
     * 
     * @param rcorderinvoiceid 专车订单发票ID
     * @return 专车订单发票
     */
    @Override
    public RcOrderInvoice selectRcOrderInvoiceById(Long rcorderinvoiceid)
    {
        return rcOrderInvoiceMapper.selectRcOrderInvoiceById(rcorderinvoiceid);
    }

    /**
     * 查询专车订单发票列表
     * 
     * @param rcOrderInvoice 专车订单发票
     * @return 专车订单发票
     */
    @Override
    public List<RcOrderInvoice> selectRcOrderInvoiceList(RcOrderInvoice rcOrderInvoice)
    {
        return rcOrderInvoiceMapper.selectRcOrderInvoiceList(rcOrderInvoice);
    }

    /**
     * 新增专车订单发票
     * 
     * @param rcOrderInvoice 专车订单发票
     * @return 结果
     */
    @Override
    public int insertRcOrderInvoice(RcOrderInvoice rcOrderInvoice)
    {
        return rcOrderInvoiceMapper.insertRcOrderInvoice(rcOrderInvoice);
    }

    /**
     * 修改专车订单发票
     * 
     * @param rcOrderInvoice 专车订单发票
     * @return 结果
     */
    @Override
    public int updateRcOrderInvoice(RcOrderInvoice rcOrderInvoice)
    {
        return rcOrderInvoiceMapper.updateRcOrderInvoice(rcOrderInvoice);
    }

    /**
     * 批量删除专车订单发票
     * 
     * @param rcorderinvoiceids 需要删除的专车订单发票ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderInvoiceByIds(Long[] rcorderinvoiceids)
    {
        return rcOrderInvoiceMapper.deleteRcOrderInvoiceByIds(rcorderinvoiceids);
    }

    /**
     * 删除专车订单发票信息
     * 
     * @param rcorderinvoiceid 专车订单发票ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderInvoiceById(Long rcorderinvoiceid)
    {
        return rcOrderInvoiceMapper.deleteRcOrderInvoiceById(rcorderinvoiceid);
    }
}
